package com.mes.cloud.dao;

import com.mes.cloud.dto.PostUserDTO;
import com.mes.cloud.dto.UserDTO;
import com.mes.cloud.dto.UserRoleDTO;
import com.mes.cloud.dto.UserTreeDTO;
import com.mes.cloud.dto.extral.UserExtralDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 用户
 *
 * @author wxm
 * @Time 2019-4-10
 */
@Mapper
@Repository
public interface UserDAO extends BaseDao<UserDTO> {

    public UserDTO getByNo(String userNo);

    List<UserDTO> findUser(Map<Object, Object> map);

    List<UserExtralDTO> findListExtral(Map<Object, Object> map);

    List<PostUserDTO> findUserByPost(Map<Object, Object> map);

    List<UserRoleDTO> findUserByRole(Map<Object, Object> map);

    List<UserTreeDTO> findTreeList(Map<Object, Object> map);

    UserExtralDTO getExtral(Long id);
}
